﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainMaster.master" AutoEventWireup="true"
    CodeFile="SupplierEdit.aspx.cs" Inherits="BasicInfo_SupplierEdit" CodeFileBaseClass="Frame.Pages.ActionInfomationEditBasePage" %>

<%@ Register Assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxHiddenField" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxCallbackPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.2.Linq, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Data.Linq" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<asp:Content ID="head" ContentPlaceHolderID="head" runat="Server">
    <script type="text/javascript">
        function ShowContract(control) {
            PPanel.ShowAtElement(control);
        }
        function CbContract(id) {
            ContractPanel.PerformCallback(id);
        }
        function CbUser(id) {
            list.SelectAllRowsOnPage(false);
            LabCsbm.SetText(id);
            $.ajax({
                type: "Post",
                url: "SupplierEdit.aspx/GetUsers",
                //方法传参的写法一定要对，str为形参的名字,str2为第二个形参的名字   
                data: "{'csbm': '" + id + "'}",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (data) {
                    //返回的数据用data.d获取内容
                    list.SelectRowsByKey(data.d);
                },
                error: function (err) {
                    //alert("关联人员获取失败,请重试！");
                    noty({ "text": "关联人员获取失败,请重试！",
                        "layout": "top",
                        "type": "error",
                        "animateOpen": { "height": "toggle" },
                        "animateClose": { "height": "toggle" },
                        "speed": 500,
                        "timeout": 1000,
                        "closeButton": false,
                        "closeOnSelfClick": true,
                        "closeOnSelfOver": false
                    });
                }
            });
        }

        function ShowUser() {
            if (UPanel.IsWindowVisible()) {
                //alert("保存成功！");
                noty({ "text": "负责人保存成功！",
                       "layout": "top",
                       "type": "success",
                       "animateOpen": { "height": "toggle" },
                       "animateClose": { "height": "toggle" },
                       "speed": 500,
                       "timeout": 1000,
                       "closeButton": false,
                       "closeOnSelfClick": true, 
                       "closeOnSelfOver": false });
                UPanel.Hide()
            }
            else {
                UPanel.Show();
            }
        }
    </script>
</asp:Content>
<asp:Content ID="MainContent" ContentPlaceHolderID="MainContent" runat="Server">
    <h1 class="DemoTitle">
        供应商管理
    </h1>
    <dx:ASPxRoundPanel ID="MainRoundPanel" runat="server" View="GroupBox" Width="100%"
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" HeaderText="操作区" CssPostfix="Office2010Blue"
        EnableDefaultAppearance="False" GroupBoxCaptionOffsetX="6px" GroupBoxCaptionOffsetY="-19px"
        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
        <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="10px" />
        <HeaderStyle>
            <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="3px" />
        </HeaderStyle>
        <PanelCollection>
            <dx:PanelContent ID="PanelContent1" runat="server" SupportsDisabledAttribute="True">
            </dx:PanelContent>
        </PanelCollection>
    </dx:ASPxRoundPanel>
    <dx:ASPxPopupControl ID="ASPxPopupControl1" runat="server" ClientInstanceName="PPanel"
        Width="650px" AllowResize="True" HeaderText="合同信息" CloseAction="CloseButton"
        AllowDragging="true" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
        CssPostfix="Office2010Blue" EnableHotTrack="False" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
        </LoadingPanelImage>
        <LoadingPanelStyle ImageSpacing="5px">
        </LoadingPanelStyle>
        <ContentCollection>
            <dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True">
                <dx:ASPxCallbackPanel ID="ContractPanel" ClientInstanceName="ContractPanel" runat="server"
                    Width="100%" OnCallback="ContractPanel_Callback">
                    <PanelCollection>
                        <dx:PanelContent>
                            <div runat="server" id="Detail">
                            </div>
                        </dx:PanelContent>
                    </PanelCollection>
                </dx:ASPxCallbackPanel>
            </dx:PopupControlContentControl>
        </ContentCollection>
    </dx:ASPxPopupControl>
    <dx:ASPxPopupControl ID="ASPxPopupControl2" runat="server" ClientInstanceName="UPanel"
        Width="450px" AllowResize="True" HeaderText="负责人" PopupVerticalAlign="WindowCenter"
        PopupHorizontalAlign="WindowCenter" CloseAction="CloseButton" Modal="true" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
        CssPostfix="Office2010Blue" EnableHotTrack="False" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
        </LoadingPanelImage>
        <LoadingPanelStyle ImageSpacing="5px">
        </LoadingPanelStyle>
        <ContentCollection>
            <dx:PopupControlContentControl ID="PopupControlContentControl2" runat="server" SupportsDisabledAttribute="True">
                <table>
                    <tr>
                        <td>
                            厂商编码：
                        </td>
                        <td>
                            <dx:ASPxLabel ID="LabCsbm" runat="server" ClientInstanceName="LabCsbm" Text="">
                            </dx:ASPxLabel>
                        </td>
                    </tr>
                </table>
                <dx:ASPxGridView runat="server" Width="100%" ID="UserList" ClientInstanceName="list"
                    DataSourceID="LSMDSourceUser" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                    CssPostfix="Office2010Blue" KeyFieldName="rybm" OnCustomCallback="UserList_CustomCallback">
                    <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                        <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                        </LoadingPanelOnStatusBar>
                        <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                        </LoadingPanel>
                    </Images>
                    <ImagesFilterControl>
                        <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                        </LoadingPanel>
                    </ImagesFilterControl>
                    <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                        <Header ImageSpacing="5px" SortingImageSpacing="5px">
                        </Header>
                        <LoadingPanel ImageSpacing="5px">
                        </LoadingPanel>
                    </Styles>
                    <StylesPager>
                        <PageNumber ForeColor="#3E4846">
                        </PageNumber>
                        <Summary ForeColor="#1E395B">
                        </Summary>
                    </StylesPager>
                    <StylesEditors ButtonEditCellSpacing="0">
                        <ProgressBar Height="21px">
                        </ProgressBar>
                    </StylesEditors>
                    <Columns>
                        <dx:GridViewCommandColumn VisibleIndex="0" ShowSelectCheckbox="true">
                            <HeaderTemplate>
                                <input type="checkbox" onclick="list.SelectAllRowsOnPage(this.checked);" title="全选或取消" />
                            </HeaderTemplate>
                            <HeaderStyle HorizontalAlign="Center" />
                        </dx:GridViewCommandColumn>
                        <dx:GridViewDataTextColumn Name="t_rybm" FieldName="rybm" VisibleIndex="0" CellStyle-HorizontalAlign="Left"
                            Caption="人员编码">
                            <CellStyle HorizontalAlign="Left">
                            </CellStyle>
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Name="t_ryxm" FieldName="ryxm" VisibleIndex="1" CellStyle-HorizontalAlign="Left"
                            Caption="人员姓名">
                            <CellStyle HorizontalAlign="Left">
                            </CellStyle>
                        </dx:GridViewDataTextColumn>
                    </Columns>
                    <Settings ShowFilterRow="true" ShowGroupPanel="false" />
                    <Settings ShowVerticalScrollBar="true" />
                    <ClientSideEvents EndCallback="ShowUser" />
                </dx:ASPxGridView>
                <table>
                    <tr>
                        <td>
                            <dx:ASPxButton ID="BtnUser" runat="server" Font-Size="10pt" Text="保存" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                Width="60px" AutoPostBack="false" UseSubmitBehavior="false">
                                <ClientSideEvents Click="function(s, e) {
                                list.PerformCallback(LabCsbm.GetText());
                        }" />
                            </dx:ASPxButton>
                        </td>
                    </tr>
                </table>
            </dx:PopupControlContentControl>
        </ContentCollection>
    </dx:ASPxPopupControl>
    <div id="DemoArea">
        <div class="Spacer" style="height: 14px;">
        </div>
        <%--        <table>
            <tr>
                <td>
                    <dx:ASPxButton ID="BtnDel" runat="server" Font-Size="10pt" Text="删除选中信息" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                        AutoPostBack="False" UseSubmitBehavior="False" Width="132px">
                        <ClientSideEvents Click="function(s, e) {
	if(confirm('确认进行删除?'))
                        {
	grid.PerformCallback();
    }

}" />
                    </dx:ASPxButton>
                </td>
                                <td>
                    <dx:ASPxButton ID="BtnNew" runat="server" Font-Size="10pt" Text="新增、修改供应商信息" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                        Width="180px" OnClick="BtnNew_Click">
                    </dx:ASPxButton>
                </td>
            </tr>
        </table>--%>
        <div class="Spacer" style="height: 14px;">
        </div>
        <dx:ASPxGridView ID="gridView" runat="server" Width="100%" ClientInstanceName="grid"
            AutoGenerateColumns="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
            CssPostfix="Office2010Blue" DataSourceID="LSMDSourceMain" KeyFieldName="csbm"
            OnCustomCallback="gridView_CustomCallback" OnCellEditorInitialize="gridView_CellEditorInitialize"
            OnRowInserting="gridView_RowInserting" OnRowUpdating="gridView_RowUpdating">
            <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                <Header ImageSpacing="5px" SortingImageSpacing="5px">
                </Header>
                <LoadingPanel ImageSpacing="5px">
                </LoadingPanel>
            </Styles>
            <ImagesFilterControl>
                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                </LoadingPanel>
            </ImagesFilterControl>
            <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                </LoadingPanelOnStatusBar>
                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                </LoadingPanel>
            </Images>
            <Columns>
                <%--                <dx:GridViewCommandColumn VisibleIndex="0" ShowSelectCheckbox="true">
                    <HeaderTemplate>
                        <input type="checkbox" onclick="grid.SelectAllRowsOnPage(this.checked);" title="全选或取消" />
                    </HeaderTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                </dx:GridViewCommandColumn>--%>
                <dx:GridViewDataTextColumn Name="t_csbm" FieldName="csbm" VisibleIndex="0" CellStyle-HorizontalAlign="Left"
                    Caption="供应商编码" ReadOnly="true">
                    <PropertiesTextEdit MaxLength="10" Width="200px" Style-Font-Size="10pt">
                        <%--                        <ValidationSettings CausesValidation="true">
                            <RequiredField IsRequired="true" ErrorText="供应商编码不可为空！"></RequiredField>
                        </ValidationSettings>--%>
                    </PropertiesTextEdit>
                    <EditFormSettings CaptionLocation="Near"></EditFormSettings>
                    <CellStyle HorizontalAlign="Left">
                    </CellStyle>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Name="t_csmc" FieldName="csmc" VisibleIndex="1" CellStyle-HorizontalAlign="Left"
                    Caption="供应商名称">
                    <PropertiesTextEdit MaxLength="40" Width="200px" Style-Font-Size="10pt">
                        <ValidationSettings CausesValidation="true">
                            <RequiredField IsRequired="true" ErrorText="供应商名称不可为空！"></RequiredField>
                        </ValidationSettings>
                        <ClientSideEvents LostFocus="function(s,e){Edit_zjm.SetText(makePy(Edit_csmc.GetText()))}" />
                    </PropertiesTextEdit>
                    <EditFormSettings CaptionLocation="Near"></EditFormSettings>
                    <CellStyle HorizontalAlign="Left">
                    </CellStyle>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataComboBoxColumn Name="t_cslx" FieldName="cslx" VisibleIndex="2" CellStyle-HorizontalAlign="Left"
                    Caption="供应商类型">
                    <PropertiesComboBox Width="200px" DropDownStyle="DropDown" ValueType="System.Char"
                        Style-Font-Size="10pt">
                        <Items>
                            <dx:ListEditItem Text="自营" Value="A" />
                            <dx:ListEditItem Text="专柜" Value="B" />
                        </Items>
                    </PropertiesComboBox>
                    <EditFormSettings CaptionLocation="Near"></EditFormSettings>
                    <CellStyle HorizontalAlign="Left">
                    </CellStyle>
                </dx:GridViewDataComboBoxColumn>
                <dx:GridViewDataComboBoxColumn Name="t_hdbz" FieldName="hdbz" VisibleIndex="3" CellStyle-HorizontalAlign="Left"
                    Caption="活动标志">
                    <PropertiesComboBox Width="200px" ShowImageInEditBox="true" DropDownStyle="DropDown"
                        ValueType="System.Char" Style-Font-Size="10pt">
                        <Items>
                            <dx:ListEditItem Text="活动" Value="A" ImageUrl="../Images/icon/A.png" />
                            <dx:ListEditItem Text="暂停" Value="Z" ImageUrl="../Images/icon/Z.png" />
                        </Items>
                    </PropertiesComboBox>
                    <EditFormSettings CaptionLocation="Near"></EditFormSettings>
                    <CellStyle HorizontalAlign="Left">
                    </CellStyle>
                </dx:GridViewDataComboBoxColumn>
                <dx:GridViewDataTextColumn Name="t_zjm" FieldName="zjm" VisibleIndex="4" CellStyle-HorizontalAlign="Left"
                    Caption="助记码">
                    <EditFormSettings CaptionLocation="Near"></EditFormSettings>
                    <PropertiesTextEdit MaxLength="20" Width="200px" Style-Font-Size="10pt">
                    </PropertiesTextEdit>
                    <CellStyle HorizontalAlign="Left">
                    </CellStyle>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Name="t_qyxz" FieldName="qyxz" VisibleIndex="5" CellStyle-HorizontalAlign="Left"
                    Caption="企业性质" Visible="false">
                    <EditFormSettings CaptionLocation="Near"></EditFormSettings>
                    <PropertiesTextEdit MaxLength="20" Width="200px" Style-Font-Size="10pt">
                    </PropertiesTextEdit>
                    <CellStyle HorizontalAlign="Left">
                    </CellStyle>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Name="t_frdb" FieldName="frdb" VisibleIndex="6" CellStyle-HorizontalAlign="Left"
                    Caption="法人代表" Visible="false">
                    <EditFormSettings CaptionLocation="Near" Visible="True"></EditFormSettings>
                    <PropertiesTextEdit MaxLength="10" Width="200px" Style-Font-Size="10pt">
                    </PropertiesTextEdit>
                    <CellStyle HorizontalAlign="Left">
                    </CellStyle>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Name="t_zczb" FieldName="zczb" VisibleIndex="7" CellStyle-HorizontalAlign="Left"
                    Caption="注册资本" Visible="false">
                    <EditFormSettings CaptionLocation="Near" Visible="True"></EditFormSettings>
                    <PropertiesTextEdit MaxLength="20" Width="200px" Style-Font-Size="10pt">
                    </PropertiesTextEdit>
                    <CellStyle HorizontalAlign="Left">
                    </CellStyle>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataMemoColumn Name="t_gsdz" FieldName="gsdz" VisibleIndex="8" CellStyle-HorizontalAlign="Left"
                    Caption="公司地址" Visible="false">
                    <PropertiesMemoEdit Width="550px" Height="50px" Style-Font-Size="10pt">
                    </PropertiesMemoEdit>
                    <EditFormSettings CaptionLocation="Near" Visible="True" ColumnSpan="2"></EditFormSettings>
                    <CellStyle HorizontalAlign="Left">
                    </CellStyle>
                </dx:GridViewDataMemoColumn>
                <dx:GridViewDataTextColumn Name="t_gsyb" FieldName="gsyb" VisibleIndex="9" CellStyle-HorizontalAlign="Left"
                    Caption="邮编" Visible="false">
                    <PropertiesTextEdit MaxLength="6" Width="200px" Style-Font-Size="10pt">
                    </PropertiesTextEdit>
                    <EditFormSettings CaptionLocation="Near" Visible="True"></EditFormSettings>
                    <CellStyle HorizontalAlign="Left">
                    </CellStyle>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Name="t_email" FieldName="email" VisibleIndex="10" CellStyle-HorizontalAlign="Left"
                    Caption="Email" Visible="false">
                    <PropertiesTextEdit MaxLength="50" Width="200px" Style-Font-Size="10pt">
                    </PropertiesTextEdit>
                    <EditFormSettings CaptionLocation="Near" Visible="True"></EditFormSettings>
                    <CellStyle HorizontalAlign="Left">
                    </CellStyle>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Name="t_nsrdjh" FieldName="nsrdjh" VisibleIndex="11" CellStyle-HorizontalAlign="Left"
                    Caption="税号" Visible="false">
                    <PropertiesTextEdit MaxLength="30" Width="200px" Style-Font-Size="10pt">
                    </PropertiesTextEdit>
                    <EditFormSettings CaptionLocation="Near" Visible="True"></EditFormSettings>
                    <CellStyle HorizontalAlign="Left">
                    </CellStyle>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Name="t_khyh" FieldName="khyh" VisibleIndex="12" CellStyle-HorizontalAlign="Left"
                    Caption="开户行" Visible="false">
                    <PropertiesTextEdit MaxLength="40" Width="200px" Style-Font-Size="10pt">
                    </PropertiesTextEdit>
                    <EditFormSettings CaptionLocation="Near" Visible="True"></EditFormSettings>
                    <CellStyle HorizontalAlign="Left">
                    </CellStyle>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Name="t_khzh" FieldName="khzh" VisibleIndex="13" CellStyle-HorizontalAlign="Left"
                    Caption="开户帐号" Visible="false">
                    <PropertiesTextEdit MaxLength="30" Width="200px" Style-Font-Size="10pt">
                    </PropertiesTextEdit>
                    <EditFormSettings CaptionLocation="Near" Visible="True"></EditFormSettings>
                    <CellStyle HorizontalAlign="Left">
                    </CellStyle>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Name="t_fzr" FieldName="fzr" VisibleIndex="14" CellStyle-HorizontalAlign="Left"
                    Caption="负责人" Visible="false">
                    <PropertiesTextEdit MaxLength="10" Width="200px" Style-Font-Size="10pt">
                    </PropertiesTextEdit>
                    <EditFormSettings CaptionLocation="Near" Visible="True"></EditFormSettings>
                    <CellStyle HorizontalAlign="Left">
                    </CellStyle>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Name="t_fzrdh" FieldName="fzrdh" VisibleIndex="15" CellStyle-HorizontalAlign="Left"
                    Caption="负责人电话" Visible="false">
                    <PropertiesTextEdit MaxLength="20" Width="200px" Style-Font-Size="10pt">
                    </PropertiesTextEdit>
                    <EditFormSettings CaptionLocation="Near" Visible="True"></EditFormSettings>
                    <CellStyle HorizontalAlign="Left">
                    </CellStyle>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Name="t_lxr" FieldName="lxr" VisibleIndex="16" CellStyle-HorizontalAlign="Left"
                    Caption="联系人" Visible="false">
                    <PropertiesTextEdit MaxLength="10" Width="200px" Style-Font-Size="10pt">
                    </PropertiesTextEdit>
                    <EditFormSettings CaptionLocation="Near" Visible="True"></EditFormSettings>
                    <CellStyle HorizontalAlign="Left">
                    </CellStyle>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataMemoColumn Name="t_lxdz" FieldName="lxdz" VisibleIndex="17" CellStyle-HorizontalAlign="Left"
                    Caption="联络地址" Visible="false">
                    <PropertiesMemoEdit Width="550px" Height="50px" Style-Font-Size="10pt">
                    </PropertiesMemoEdit>
                    <EditFormSettings CaptionLocation="Near" Visible="True" ColumnSpan="2"></EditFormSettings>
                    <CellStyle HorizontalAlign="Left">
                    </CellStyle>
                </dx:GridViewDataMemoColumn>
                <dx:GridViewDataTextColumn Name="t_lxyb" FieldName="lxyb" VisibleIndex="18" CellStyle-HorizontalAlign="Left"
                    Caption="联络邮编" Visible="false">
                    <PropertiesTextEdit MaxLength="6" Width="200px" Style-Font-Size="10pt">
                    </PropertiesTextEdit>
                    <EditFormSettings CaptionLocation="Near" Visible="True"></EditFormSettings>
                    <CellStyle HorizontalAlign="Left">
                    </CellStyle>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Name="t_lxrzw" FieldName="lxrzw" VisibleIndex="19" CellStyle-HorizontalAlign="Left"
                    Caption="联系人职位" Visible="false">
                    <PropertiesTextEdit MaxLength="40" Width="200px" Style-Font-Size="10pt">
                    </PropertiesTextEdit>
                    <EditFormSettings CaptionLocation="Near" Visible="True"></EditFormSettings>
                    <CellStyle HorizontalAlign="Left">
                    </CellStyle>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Name="t_lxrdh" FieldName="lxrdh" VisibleIndex="20" CellStyle-HorizontalAlign="Left"
                    Caption="联系人电话" Visible="false">
                    <PropertiesTextEdit MaxLength="20" Width="200px" Style-Font-Size="10pt">
                    </PropertiesTextEdit>
                    <EditFormSettings CaptionLocation="Near" Visible="True"></EditFormSettings>
                    <CellStyle HorizontalAlign="Left">
                    </CellStyle>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Name="t_lxrcz" FieldName="lxrcz" VisibleIndex="21" CellStyle-HorizontalAlign="Left"
                    Caption="联系人传真" Visible="false">
                    <PropertiesTextEdit MaxLength="20" Width="200px" Style-Font-Size="10pt">
                    </PropertiesTextEdit>
                    <EditFormSettings CaptionLocation="Near" Visible="True"></EditFormSettings>
                    <CellStyle HorizontalAlign="Left">
                    </CellStyle>
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataMemoColumn Name="t_bz" FieldName="bz" VisibleIndex="22" CellStyle-HorizontalAlign="Left"
                    Caption="备注" Visible="false">
                    <PropertiesMemoEdit Width="550px" Height="50px" Style-Font-Size="10pt">
                    </PropertiesMemoEdit>
                    <EditFormSettings CaptionLocation="Near" Visible="True" ColumnSpan="2"></EditFormSettings>
                    <CellStyle HorizontalAlign="Left">
                    </CellStyle>
                </dx:GridViewDataMemoColumn>
                <%--<dx:GridViewDataComboBoxColumn Name="t_founder" FieldName="founder" VisibleIndex="23"
                CellStyle-HorizontalAlign="Left" Caption="建档人" Visible="false">
                <PropertiesComboBox Width="260px">
                </PropertiesComboBox>
                <EditFormSettings CaptionLocation="Near"></EditFormSettings>
            </dx:GridViewDataComboBoxColumn>
            <dx:GridViewDataTextColumn Name="t_fdate" FieldName="fdate" VisibleIndex="24" CellStyle-HorizontalAlign="Left"
                Caption="建档时间" Visible="false">
                <EditFormSettings CaptionLocation="Near"></EditFormSettings>
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataComboBoxColumn Name="t_editor" FieldName="editor" VisibleIndex="25"
                CellStyle-HorizontalAlign="Left" Caption="修改人" Visible="false">
                <PropertiesComboBox Width="260px">
                </PropertiesComboBox>
                <EditFormSettings CaptionLocation="Near"></EditFormSettings>
            </dx:GridViewDataComboBoxColumn>
            <dx:GridViewDataTextColumn Name="t_edate" FieldName="edate" VisibleIndex="26" CellStyle-HorizontalAlign="Left"
                Caption="修改时间" Visible="false">
                <EditFormSettings CaptionLocation="Near"></EditFormSettings>
            </dx:GridViewDataTextColumn>--%>
                <dx:GridViewDataTextColumn Name="t_htbh" FieldName="htbh" VisibleIndex="5" CellStyle-HorizontalAlign="Left"
                    Caption="生效合同编号">
                    <EditFormSettings CaptionLocation="Near" Visible="False"></EditFormSettings>
                    <DataItemTemplate>
                        <%#
                        Eval("htbh") == null ? "无" : "<a href=\"javascript:CbContract('" + Eval("htbh") + "');\" onclick='javascript:ShowContract(this)'> " + Eval("htbh") + "</a>"
                        %>
                    </DataItemTemplate>
                    <EditFormSettings Visible="False" />
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn VisibleIndex="6" Caption="负责人" Width="60px">
                    <DataItemTemplate>
                        <a href="javascript:CbUser(' <%# Eval("csbm")%> ');">负责人</a>
                    </DataItemTemplate>
                    <EditFormSettings Visible="False" />
                </dx:GridViewDataTextColumn>
            </Columns>
            <Templates>
                <DetailRow>
                    <table style="font-size: 10pt" width="600px">
                        <tr>
                            <td style="white-space: nowrap">
                                企业性质:
                            </td>
                            <td>
                                <dx:ASPxLabel Width="200px" Font-Size="10pt" ID="View_qyxz" Wrap="true" runat="server"
                                    CssFilePath="~/App_Themes/DevEx/{0}/styles.css" Text='<%# Eval("qyxz") %>' CssPostfix="DevEx">
                                </dx:ASPxLabel>
                            </td>
                            <td style="white-space: nowrap">
                                法人代表:
                            </td>
                            <td>
                                <dx:ASPxLabel Width="200px" Font-Size="10pt" ID="View_frdb" Wrap="true" runat="server"
                                    CssFilePath="~/App_Themes/DevEx/{0}/styles.css" Text='<%# Eval("frdb") %>' CssPostfix="DevEx">
                                </dx:ASPxLabel>
                            </td>
                        </tr>
                        <tr>
                            <td style="white-space: nowrap">
                                注册资本:
                            </td>
                            <td>
                                <dx:ASPxLabel Width="200px" Font-Size="10pt" ID="View_zczb" Wrap="true" runat="server"
                                    CssFilePath="~/App_Themes/DevEx/{0}/styles.css" Text='<%# Eval("zczb") %>' CssPostfix="DevEx">
                                </dx:ASPxLabel>
                            </td>
                            <td style="white-space: nowrap">
                                邮编:
                            </td>
                            <td>
                                <dx:ASPxLabel Width="200px" Font-Size="10pt" ID="View_gsyb" Wrap="true" runat="server"
                                    CssFilePath="~/App_Themes/DevEx/{0}/styles.css" Text='<%# Eval("gsyb") %>' CssPostfix="DevEx">
                                </dx:ASPxLabel>
                            </td>
                        </tr>
                        <tr>
                            <td style="white-space: nowrap;">
                                公司地址:
                            </td>
                            <td colspan="3">
                                <dx:ASPxLabel Width="400px" Font-Size="10pt" ID="View_gsdz" Wrap="true" runat="server"
                                    CssFilePath="~/App_Themes/DevEx/{0}/styles.css" Text='<%# Eval("gsdz") %>' CssPostfix="DevEx">
                                </dx:ASPxLabel>
                            </td>
                        </tr>
                        <tr>
                            <td style="white-space: nowrap">
                                Email:
                            </td>
                            <td>
                                <dx:ASPxLabel Width="200px" Font-Size="10pt" ID="View_Email" Wrap="true" runat="server"
                                    CssFilePath="~/App_Themes/DevEx/{0}/styles.css" Text='<%# Eval("email") %>' CssPostfix="DevEx">
                                </dx:ASPxLabel>
                            </td>
                            <td style="white-space: nowrap">
                                税号:
                            </td>
                            <td>
                                <dx:ASPxLabel Width="200px" Font-Size="10pt" ID="View_nsrdjh" Wrap="true" runat="server"
                                    CssFilePath="~/App_Themes/DevEx/{0}/styles.css" Text='<%# Eval("nsrdjh") %>'
                                    CssPostfix="DevEx">
                                </dx:ASPxLabel>
                            </td>
                        </tr>
                        <tr>
                            <td style="white-space: nowrap">
                                开户行:
                            </td>
                            <td>
                                <dx:ASPxLabel Width="200px" Font-Size="10pt" ID="View_khyh" Wrap="true" runat="server"
                                    CssFilePath="~/App_Themes/DevEx/{0}/styles.css" Text='<%# Eval("khyh") %>' CssPostfix="DevEx">
                                </dx:ASPxLabel>
                            </td>
                            <td style="white-space: nowrap">
                                开户帐号:
                            </td>
                            <td>
                                <dx:ASPxLabel Width="200px" Font-Size="10pt" ID="View_khzh" Wrap="true" runat="server"
                                    CssFilePath="~/App_Themes/DevEx/{0}/styles.css" Text='<%# Eval("khzh") %>' CssPostfix="DevEx">
                                </dx:ASPxLabel>
                            </td>
                        </tr>
                        <tr>
                            <td style="white-space: nowrap">
                                负责人:
                            </td>
                            <td>
                                <dx:ASPxLabel Width="200px" Font-Size="10pt" ID="View_fzr" Wrap="true" runat="server"
                                    CssFilePath="~/App_Themes/DevEx/{0}/styles.css" Text='<%# Eval("fzr") %>' CssPostfix="DevEx">
                                </dx:ASPxLabel>
                            </td>
                            <td style="white-space: nowrap">
                                负责人电话:
                            </td>
                            <td>
                                <dx:ASPxLabel Width="200px" Font-Size="10pt" ID="View_fzrdh" Wrap="true" runat="server"
                                    CssFilePath="~/App_Themes/DevEx/{0}/styles.css" Text='<%# Eval("fzrdh") %>' CssPostfix="DevEx">
                                </dx:ASPxLabel>
                            </td>
                        </tr>
                        <tr>
                            <td style="white-space: nowrap">
                                联系人:
                            </td>
                            <td>
                                <dx:ASPxLabel Width="200px" Font-Size="10pt" ID="View_lxr" Wrap="true" runat="server"
                                    CssFilePath="~/App_Themes/DevEx/{0}/styles.css" Text='<%# Eval("lxr") %>' CssPostfix="DevEx">
                                </dx:ASPxLabel>
                            </td>
                            <td style="white-space: nowrap">
                                联络邮编:
                            </td>
                            <td>
                                <dx:ASPxLabel Width="200px" Font-Size="10pt" ID="View_lxyb" Wrap="true" runat="server"
                                    CssFilePath="~/App_Themes/DevEx/{0}/styles.css" Text='<%# Eval("lxyb") %>' CssPostfix="DevEx">
                                </dx:ASPxLabel>
                            </td>
                        </tr>
                        <tr>
                            <td style="white-space: nowrap">
                                联络地址:
                            </td>
                            <td colspan="3">
                                <dx:ASPxLabel Width="400px" ID="View_lxdz" Font-Size="10pt" Wrap="true" runat="server"
                                    CssFilePath="~/App_Themes/DevEx/{0}/styles.css" Text='<%# Eval("lxdz") %>' CssPostfix="DevEx">
                                </dx:ASPxLabel>
                            </td>
                        </tr>
                        <tr>
                            <td style="white-space: nowrap">
                                联系人职位:
                            </td>
                            <td>
                                <dx:ASPxLabel Width="200px" Font-Size="10pt" ID="View_lxrzw" Wrap="true" runat="server"
                                    CssFilePath="~/App_Themes/DevEx/{0}/styles.css" Text='<%# Eval("lxrzw") %>' CssPostfix="DevEx">
                                </dx:ASPxLabel>
                            </td>
                            <td style="white-space: nowrap">
                                联系人电话:
                            </td>
                            <td>
                                <dx:ASPxLabel Width="200px" Font-Size="10pt" ID="View_lxrdh" Wrap="true" runat="server"
                                    CssFilePath="~/App_Themes/DevEx/{0}/styles.css" Text='<%# Eval("lxrdh") %>' CssPostfix="DevEx">
                                </dx:ASPxLabel>
                            </td>
                        </tr>
                        <tr>
                            <td style="white-space: nowrap">
                                联系人传真:
                            </td>
                            <td colspan="3">
                                <dx:ASPxLabel Width="400px" ID="View_lxrcz" Wrap="true" Font-Size="10pt" runat="server"
                                    CssFilePath="~/App_Themes/DevEx/{0}/styles.css" Text='<%# Eval("lxrcz") %>' CssPostfix="DevEx">
                                </dx:ASPxLabel>
                            </td>
                        </tr>
                        <tr>
                            <td style="white-space: nowrap">
                                备注:
                            </td>
                            <td colspan="3">
                                <dx:ASPxLabel Width="400px" ID="View_Remark" Wrap="true" Font-Size="10pt" runat="server"
                                    CssFilePath="~/App_Themes/DevEx/{0}/styles.css" Text='<%# Eval("bz") %>' CssPostfix="DevEx">
                                </dx:ASPxLabel>
                            </td>
                        </tr>
                    </table>
                </DetailRow>
            </Templates>
            <StylesPager>
                <PageNumber ForeColor="#3E4846">
                </PageNumber>
                <Summary ForeColor="#1E395B">
                </Summary>
            </StylesPager>
            <StylesEditors ButtonEditCellSpacing="0">
                <ProgressBar Height="21px">
                </ProgressBar>
            </StylesEditors>
            <Settings ShowFilterRow="true" />
            <SettingsDetail ShowDetailRow="true" ShowDetailButtons="true" />
            <SettingsEditing EditFormColumnCount="2" Mode="PopupEditForm" PopupEditFormWidth="600px"
                PopupEditFormHorizontalAlign="WindowCenter" PopupEditFormVerticalAlign="WindowCenter" />
        </dx:ASPxGridView>
        <dx:LinqServerModeDataSource ID="LSMDSourceMain" runat="server" EnableDelete="true"
            EnableUpdate="true" EnableInsert="true" ContextTypeName="DAL.DataClassesDataContext"
            TableName="css_csdj" />
        <dx:LinqServerModeDataSource ID="LSMDSourceUser" runat="server" ContextTypeName="DAL.DataClassesDataContext"
            TableName="css_user" />
    </div>
</asp:Content>
